<% layout('diylayout') %>
<% block('head').append('<link type="text/css" href="/stylesheets/style.css">') %>
<div>

    <div data-am-widget="tabs" class="am-tabs am-tabs-d2 am-margin-0">
        <ul class="am-tabs-nav am-cf" data-am-sticky>
            <li class="am-active"><a href="" >自提订单</a></li>
        </ul>
        <div class="am-tabs-bd">
            <div data-tab-panel-0 class="am-tab-panel am-active">
                <div class="am-list" >
                     <%
                        if(listtype && listtype.length > 0){
                                listtype.forEach(function(orderone){
                    %>
                    <div class="am-list-item am-margin-vertical-sm  scor-border-bottom">
                        <p class="scor-font-size-15 scor-color-555 am-margin-0">
                            <span class="am-margin-left-sm">  订单编号 </span>
                            <span class="am-text-warning "><%= orderone.orderid%></span>
                        </p>
                        <p class="scor-font-size-15 scor-color-555 am-margin-0">
                            <span class="am-margin-left-sm">  自提点 </span>
                            <span class="am-text-warning "><%= orderone.storeName%></span>
                        </p>

                        <% orderone.goods.forEach(function(good){ %>
                        <div class="am-g">
                            <div class="am-u-sm-2">
                                <img src="<%=good.img%>" class="scor-img-45">
                            </div>
                            <div class="am-u-sm-7">
                                <div class="am-text-warning scor-font-size-16"><%=good.pname + good.sname%></div>
                                <div class="scor-color-555 scor-font-size-14">数量:<span class="scor-color-888"><%=good.size%></span></div>
                            </div>
                            <div class="am-u-sm-3">
                                <div class="am-text-warning scor-font-weight-700 scor-font-size-14">￥<%=good.price%></div>
                                <div>&nbsp;</div>
                            </div>
                        </div>
                        <% }) %>
                        <div class="am-g">
                            <p class="am-margin-0 am-u-sm-9">
                                <span class="scor-color-888 scor-font-size-12">订单状态</span>
                                <span class="scor-font-size-12 scor-font-weight-700 am-text-warning "><%= orderone.status%></span>
                            </p>
                            <!--<%if(orderone.status=='待付款'){%>-->
                            <!--<div class="am-u-sm-3 am-margin-0">-->
                                <!--<button type="button" class="am-btn am-btn-warning am-radius" ng-click="SubmitBtn()" ng-disabled="TotalPrice<0">去付款</button>-->
                            <!--</div>-->
                            <!--<%}%>-->
                        </div>
                        <div class="am-g">
                            <div class="am-u-sm-9 am-margin-0 ">
                                <span class="scor-color-888 scor-font-size-12 ">手机号</span>
                                <span class="scor-font-size-10 scor-color-red scor-font-weight-500" ng-if='orderone.toPhone'>
                                    <%= orderone.toPhone%>
                                </span>
                                <!-- <span class="scor-border  am-radius scor-font-size-15 scor-color-888 am-align-right am-margin-right-xs am-margin-top-xs am-padding-horizontal-sm" ng-click="getOrderInfo(orderone.orderid)">查&nbsp;看</span>-->
                            </div>
                            <div class="am-u-sm-3 am-margin-0 ">
                                <span class="scor-color-888 scor-font-size-12 ">自提人</span>
                                <span class="scor-font-size-12 scor-font-weight-700 am-text-warning" ng-if='orderone.toName'>
                                    <%= orderone.toName%>
                                </span>
                            </div>
                        </div>
                        <div class="am-g">
                            <div class="am-u-sm-9 am-margin-0 ">
                                <span class="scor-color-888 scor-font-size-12 ">支付方式</span>
                                <span class="scor-font-size-12 scor-font-weight-700 am-text-warning"><%= orderone.payway%></span>
                            </div>
                            <div class="am-u-sm-3 am-margin-0 ">
                                <span class="scor-color-888 scor-font-size-12 ">总计</span>
                                <span class="scor-font-size-10 scor-color-red scor-font-weight-500"><%= orderone.total%></span>
                                <!-- <span class="scor-border  am-radius scor-font-size-15 scor-color-888 am-align-right am-margin-right-xs am-margin-top-xs am-padding-horizontal-sm" ng-click="getOrderInfo(orderone.orderid)">查&nbsp;看</span>-->
                            </div>
                        </div>
                    </div>
                    <%});}else{%>
                    <div>您暂时还没有自提订单.</div>
                    <%}%>
                </div>
            </div>
        </div>
    </div>


</div>


<% include ../../../../views/navbar.ejs %>
<% block('footer').append('<script src="/extra/diy/app.js"></script>') %>
